# Contributor: clu@eeviac

pkgname=perl-text-unidecode
pkgver=1.30
pkgrel=3
pkgdesc='US-ASCII transliterations of Unicode text'
arch=('i686' 'loong64' 'x86_64')
url='https://metacpan.org/pod/Text::Unidecode'
license=('GPL' 'PerlArtistic')
depends=('perl>=5.6.0')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/S/SB/SBURKE/Text-Unidecode-${pkgver}.tar.gz")
sha256sums=('6c24f14ddc1d20e26161c207b73ca184eed2ef57f08b5fb2ee196e6e2e88b1c6')

build() {
  cd  "${srcdir}/Text-Unidecode-${pkgver}"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "${srcdir}/Text-Unidecode-${pkgver}"

  make install DESTDIR=${pkgdir}
  find ${pkgdir} -name '.packlist' -delete
  find ${pkgdir} -name '*.pod' -delete
}

